﻿#include "Delayer.h"
#include "BufferDelayer.h"

#ifdef USEJNI
#include "Delayer_JNI.h"
using namespace yzrilyzr_dsp;
using namespace yzrilyzr_util;
JNIEXPORT jlong JNICALL Java_yzrilyzr_dsp_Delayer_constructor(JNIEnv* env, jobject, jdouble delay, jdouble reverb, jdouble mix) {
	Delayer* ptr = new Delayer(delay,reverb,mix);
	return reinterpret_cast<jlong>(ptr);
}
JNIEXPORT void JNICALL Java_yzrilyzr_dsp_Delayer_set(JNIEnv* env, jobject,jlong ptr1, jdouble delay, jdouble reverb, jdouble mix) {
	Delayer* ptr = reinterpret_cast<Delayer*>(ptr1);
	ptr->setDelay(delay);
	ptr->setMix(mix);
	ptr->setReverb(reverb);
}
#endif